#include "Menu.h"
#include "Area.h"
#include "Color.h"
#include "SmothMoveAnimation.h"

Menu::Menu(const std::string& header)
    : TextArea(Area(-399, 40, 400, 400), Color(10, 10, 10, 150)), header(header)
{
    addHeaderLine(header);
}

Menu::~Menu()
{
}

void Menu::runStartAnimation()
{
    setAnimation(new SmothMoveAnimation(getPosition(), Position(120, 40), 200));
}

void Menu::clear()
{
    TextArea::clear();
    addHeaderLine(header);
}

void Menu::runEndAnimation()
{
    setAnimation(new SmothMoveAnimation(getPosition(), Position(639, 40), 200));
}
